//
//  HLGetHBAlertView.h
//  demo
//
//  Created by Zhl on 16/10/27.
//  Copyright © 2016年 LearningRoad. All rights reserved.
//

#import <UIKit/UIKit.h>

@class Info_BBSModel;
@class RedbagBaseModel;
typedef enum {
    HLGetHBAlertViewShowTypeAble = 12010,//可领取
    HLGetHBAlertViewShowTypeUnableGetOver = 12001,//手慢，已抢完
    HLGetHBAlertViewShowTypeUnableOverdue = 12003//过期
}HLGetHBAlertViewShowType;

@protocol HLGetHBAlertViewDelegate;

@interface HLGetHBAlertView : UIView

/**
 *  在window上添加红包弹框
 *
 *  @para delegate
 *  @para model    头像 & 昵称
 *  @para redbagModel     0 红包可抢   1 手慢了   2 红包过期
 *
 */
+(void)showHLGetHBAlertViewInWindowWithDelegate:(id<HLGetHBAlertViewDelegate>)delegate model:(Info_BBSModel*)model  RedbagModel:(RedbagBaseModel*)redbagModel;
/**
 *  从window中移除红包按钮
 */
+(void)removeHLGetHBAlertViewFromWindow;

@end

@protocol HLGetHBAlertViewDelegate <NSObject>
@optional
/**
 *  Open按钮被点击
 */
-(void)hLGetHBAlertViewOpenBtnClicked;
/**
 *  查看大家手气按钮被点击
 */
-(void)hLGetHBAlertViewSeeLuckyBtnClicked;
@end
